# Q-Project
# Forms Module
# Copyright (C) 2010 by Andres Rocha, Miguel Ordo/ez, Edgar Sotelo
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from django import forms
from Q.QApp.choices import SUBJECT_CHOICES
from Q.QApp.models import Category_User

class userForm (forms.Form):
    name	= forms.CharField(max_length=30,label="Nombre")
    last_name	= forms.CharField(max_length=30,label="Apellido")
    mail	= forms.EmailField(label="Mail")
    password	= forms.CharField(max_length=10,widget=forms.PasswordInput(), label="Password")

class loginForm (forms.Form):
    mail 	= forms.EmailField(label="Mail")
    password	= forms.CharField(max_length=10,widget=forms.PasswordInput(),label="Password")

class profileForm(forms.Form):
    name        = forms.CharField(max_length=30,label="Nombre",required=False)
    last_name   = forms.CharField(max_length=30,label="Apellido",required=False)
    password	= forms.CharField(max_length=10,widget=forms.PasswordInput(), label="Password",required=False)

class questionForm(forms.Form):
    question    = forms.CharField(widget=forms.Textarea(),label="")
    subject     = forms.ChoiceField(choices=SUBJECT_CHOICES,label="")

class categoryForm(forms.Form):
    subject     = forms.ChoiceField(choices=SUBJECT_CHOICES)
    
class replyButton(forms.Form):
    question    = forms.IntegerField(widget=forms.HiddenInput())

class replyForm(forms.Form):
    reply       = forms.CharField(widget=forms.Textarea(),label="")
    question    = forms.CharField(widget=forms.HiddenInput())
#    file        = forms.FilePathField()